import { Module } from '@nestjs/common';
import { FileController } from './file.controller';
import { ClientsModule, Transport } from '@nestjs/microservices';
import { FileService } from './file.service';
import { QiniuModule } from '@app/qiniu';

@Module({
  imports: [
    ClientsModule.register([
      { name: 'file-analyze', transport: Transport.TCP },
    ]),
    QiniuModule,
  ],
  controllers: [FileController],
  providers: [FileService],
})
export class FileModule {}
